package com.aier.user.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * 访问记录实体
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "visitor_record", catalog = "abc")
public class VisitorRecord implements java.io.Serializable {

    // 标识
    private Long vrid;
    // 访问者的用户id
    private Long vuid;
    // 被访问者的用户id
    private Long buid;
    // 时间
    private Timestamp cdate;
    
    /** default constructor */
    public VisitorRecord() {
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "vrid", unique = true, nullable = false)
    public Long getVrid() {
        return vrid;
    }

    public void setVrid(Long vrid) {
        this.vrid = vrid;
    }

    @Column(name = "vuid", nullable = false, length = Constant.num_20)
    public Long getVuid() {
        return vuid;
    }

    public void setVuid(Long vuid) {
        this.vuid = vuid;
    }
    @Column(name = "buid", nullable = false, length = Constant.num_20)
    public Long getBuid() {
        return buid;
    }

    public void setBuid(Long buid) {
        this.buid = buid;
    }

    @Column(name = "cdate")
    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }

}